package com.lzh.seatrend.entity.system;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * (Department)实体类
 *
 * @author makejava
 * @since 2021-12-09 15:26:09
 */
public class Department implements Serializable {
    private static final long serialVersionUID = 627698185337587992L;

    private String departmentid;

    private String subdepartment;

    private String departmentname;

    @Transient
    private List<Department> childList = new ArrayList<>();

    public Department() {
    }

    public Department(String departmentid, String subdepartment, String departmentname, List<Department> childList) {
        this.departmentid = departmentid;
        this.subdepartment = subdepartment;
        this.departmentname = departmentname;
        this.childList = childList;
    }

    public String getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(String departmentid) {
        this.departmentid = departmentid;
    }

    public String getSubdepartment() {
        return subdepartment;
    }

    public void setSubdepartment(String subdepartment) {
        this.subdepartment = subdepartment;
    }

    public Object getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }


    public List<Department> getChildList() {
        return childList;
    }

    public void setChildList(List<Department> childList) {
        this.childList = childList;
    }

//    @Override
//    public String toString() {
//        return "Department{" +
//                "departmentid='" + departmentid + '\'' +
//                ", subdepartment='" + subdepartment + '\'' +
//                ", departmentname='" + departmentname + '\'' +
//                ", childList=" + childList +
//                '}';
//    }
}
